import time

def get_team_info(mongo_instance, soup, cid, company):
    print('start 核心团队数据*******')
    for tr in soup.find('div', id='_container_teamMember').find_all('div', class_='team-item') if soup.find('div',
                                                                                                            id='_container_teamMember') else []:
        item = {}
        item['avatar'] = tr.find('img')['src']
        item['name'] = tr.find('img')['alt']
        item['duty'] = tr.find('div', class_='team-title').text
        item['intro'] = tr.find('div', class_='team-right').text
        item['create_at'] = int(time.time())
        item['update_at'] = item['create_at']
        item['company'] = company
        item['company_id'] = cid
        print(item)
        mongo_instance.team.update({'company_id': cid}, item, True)

    print('success 核心团队数据*******')